/*
 **信用分相关接口
 **
 ****/
import request from '../utils/fetch'
//信用分记录
export function creditWorkerRecordList(data) {
    return request({
        url: '/api/worker/credit/record/list',
        method: 'get',
        loading: true,
        params: data
    })
}
//信用分记录
export function creditForemanRecordList(data) {
    return request({
        url: '/api/foreman/credit/record/list',
        method: 'get',
        loading: true,
        params: data
    })
}
//获取总的信用分
export function creditWorkerCount() {
    return request({
        url: '/api/worker/credit/count',
        method: 'get',
        loading: true,
    })
}
//获取总的信用分
export function creditForemanCount() {
    return request({
        url: '/api/foreman/credit/count',
        method: 'get',
        loading: true,
    })
}
//获取信用分记录类型
export function creditTypeList() {
    return request({
        url: '/api/customer/credit/type/list',
        method: 'get',
        loading: true,
    })
}